class hotuserleijiliuliangbean {
  int code;
  String message;
  Result result;
  bool success;
  int timestamp;

  hotuserleijiliuliangbean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  hotuserleijiliuliangbean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    result =
    json['result'] != null ? new Result.fromJson(json['result']) : null;
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.toJson();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  var dayTotalFlow;
  var monthTotalFlow;
  var maxInstantFlow;
  var minInstantFlow;
  var yesterDayFlow;
  var yearDayFlow;

  Result({this.dayTotalFlow, this.monthTotalFlow,     this.maxInstantFlow,
    this.minInstantFlow,
    this.yearDayFlow,
    this.yesterDayFlow,});

  Result.fromJson(Map<String, dynamic> json) {
    if(null == json['dayTotalFlow']){
      dayTotalFlow="";
    }else{
      dayTotalFlow = json['dayTotalFlow'];
    }
    if(null == json['monthTotalFlow']){
      monthTotalFlow="";
    }else{
      monthTotalFlow = json['monthTotalFlow'];
    }
    monthTotalFlow = json['monthTotalFlow'];

    maxInstantFlow = json['maxInstantFlow'];
    minInstantFlow = json['minInstantFlow'];
    yesterDayFlow = json['yesterDayFlow'];
    yearDayFlow = json['yearDayFlow'];

  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['dayTotalFlow'] = this.dayTotalFlow;
    data['monthTotalFlow'] = this.monthTotalFlow;
    data['maxInstantFlow'] = this.maxInstantFlow;
    data['minInstantFlow'] = this.minInstantFlow;
    data['yesterDayFlow'] = this.yesterDayFlow;
    data['yearDayFlow'] = this.yearDayFlow;
    return data;
  }
}
